import React from 'react';
import { Modal } from 'antd';
import { TipBox } from '@/pages/Task/components';
import { MODAL_FORCE_PARAM } from '@/pages/Task/components/InfoModal/config';
// 只有两行文字的公用info弹框
export const showTipBoxInfoModal = ({ rows: [row1, row2], content, ...rest }) => {
    const modalParams = { ...rest, ...MODAL_FORCE_PARAM };
    Modal.info({
        ...modalParams,
        content: <TipBox title={row1} content={row2} />
    });
};
